from copy import deepcopy

servos = []

class action_key:
    def __init__(self, angles:list, time:int):
        self.angles = deepcopy(angles)
        self.time = time

    def set_angles(self,angles:list):
        self.angles = deepcopy(angles)

class servo:
    max_id = 0
    def __init__(self, name:str):
        self.name = name
        self.id = self.max_id + 1
        self.max_id += 1
        self.angle = 0
        servos.append(self)